//
//  ItemZeroCell.m
//  Lovelife
//
//  Created by apple on 15/4/25.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ItemZeroCell.h"
#import "NightManager.h"

@implementation ItemZeroCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width , 240)];
        [view setBackgroundColor:[UIColor whiteColor]];
        
        [self.contentView addSubview:view];
        
        self.thumbImg = [[UIImageView alloc]init];
        
        [view addSubview:self.thumbImg];
        
        self.titleLB = [[BaseLabel alloc]init];
        
        [view addSubview:self.titleLB];
        

        
        [_thumbImg release];
        [_titleLB release];

    }
    return  self;
    
}

- (void)dealloc
{
    [_titleLB release];
    [_thumbImg release];
    [super dealloc];
}


-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.titleLB.frame = CGRectMake(15, 190, 270, 25);
    
    self.titleLB.font = [UIFont systemFontOfSize:20];
    
    self.titleLB.textColor = [UIColor whiteColor];

    self.thumbImg.frame = CGRectMake(0, 0, self.frame.size.width, 240);
    
}

-(void)setNightDayModel
{
    [NightManager setLabelColorWithLabel:self.titleLB];
    
    [NightManager setBackgroundColorWithView:self];
}

-(void)setLightDayModel
{
    [NightManager setLabelColorWithLabel:self.titleLB];
    
    [NightManager setBackgroundColorWithView:self];
    
}

@end
